﻿using valu.ChinaEncrySMCore;

namespace SMDemo
{
    internal class Program
    {
        static void Main(string[] args)
        {
            SM4Utils sm4 = new SM4Utils("11223344556677889900112233445566", "66554433221100998877665544332211", true);
            string test = sm4.Encrypt_CBC("中文");
            Console.WriteLine("sm4=" + test);

            string sm2str = SM2Utils.Encrypt("04FAC5E74DB86DFB4CFB5F0E251AD6DD1A7B975493586F33536F3968AE732F8CA51748AD62BB274068913DB7885FD980E6CF95A341E7509198E3F5052570C7ACCD",
                "abc");
            Console.WriteLine($"sm2str={sm2str}");
        }
    }
}
